package com.nk.wsserver.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.socket.TextMessage;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.TextWebSocketHandler;

public class NKWebSocketHandler extends TextWebSocketHandler {
	private Logger logger = LoggerFactory.getLogger(NKWebSocketHandler.class);
	@Override
	protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception {
		logger.info("Receive a msg[sessionId:{}]:{}",session.getId(), message.getPayload());
		super.handleTextMessage(session, message);
	}

}
